package com.gupaoedu.mybatis.newlife;

public class WDTSqlSession {
    private   WDTExecutor executor;
    private   WDTConfiguration configuration;

    public WDTSqlSession(WDTExecutor executor, WDTConfiguration configuration) {
        this.executor = executor;
        this.configuration = configuration;
    }
    public <T> T getMapper(Class clazz){
      return configuration.getMapper(clazz,this);
    }
    public <T> T selectOne(String  statement,String paramter){   // sql   and  param
           return  executor.query(statement,paramter);
    }

}
